<header class="es-header navbar">
    <div class="navbar-header">
        <div class="visible-xs  navbar-mobile">
            <a href="javascript:;" class="navbar-more js-navbar-more"> <i class="es-icon es-icon-menu"></i> </a>
            <div class="html-mask"></div>
            <div class="nav-mobile">
                <form class="navbar-form" action="/search" method="get">
                    <div class="form-group">
                        <input class="form-control" placeholder="搜索" name="q">
                        <button class="button es-icon es-icon-search"></button>
                    </div>
                </form>
                <ul class="nav navbar-nav">

                    <li class="nav-hover">
                        <a href="/course/explore" >课程 <b class="caret"></b></a>
                        <ul class="dropdown-menu" role="menu">
                            <li>
                                <a href="/course/explore"  >全部课程</a>
                            </li>
                            <li>
                                <a href="/course/explore/intro"  >产品介绍</a>
                            </li>
                            <li>
                                <a href="/course/explore/fuction"  >使用帮助</a>
                            </li>
                        </ul>
                    </li>
                    <li class="">
                        <a href="/classroom/explore" >班级 </a>
                    </li>
                    <li class="nav-hover">
                        <a href="/article" >资讯 <b class="caret"></b></a>
                        <ul class="dropdown-menu" role="menu">
                            <li>
                                <a href="/article"  >全部资讯</a>
                            </li>
                            <li>
                                <a href="/article/category/news"  >EduSoho</a>
                            </li>
                            <li>
                                <a href="/article/category/news"  >行业资讯</a>
                            </li>
                            <li>
                                <a href="/article/category/default"  >默认分类</a>
                            </li>
                        </ul>
                    </li>
                    <li class="">
                        <a href="/group" >小组 </a>
                    </li>
                    <li class="">
                        <a href="/mobile" >移动端 </a>
                    </li>
                    <li class="">
                        <a href="/page/aboutus" >关于我们 </a>
                    </li>

                </ul>
            </div>
        </div>
        <a href="/" class="navbar-brand"> 大学加 </a>
    </div>
    <nav class="collapse navbar-collapse">
        <ul class="nav navbar-nav clearfix hidden-xs " id="nav">
            <think:nav name="nav">
                <eq name="nav.pid" value="0">
                    <li>
                        <a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
                    </li>
                </eq>
            </think:nav>
        </ul>
        <div class="navbar-user  left ">
            <ul class="nav user-nav">
                <li class="user-avatar-li nav-hover visible-xs">
                    <a href="javascript:;" class="dropdown-toggle"> <img class="avatar-xs" src="/assets/img/default/avatar.png?6.12.4"> </a>
                    <ul class="dropdown-menu" role="menu">
                        <if condition="is_login()">
                            <li class="dropdown">
                            <li>
                                <a href="#">{:get_username()}</a>
                            </li>
                            <li>
                                <a href="{:U('User/logout')}">退出</a>
                            </li>
                </li>
                <else/>
                <li>
                    <a href="#" data-toggle="modal" data-target="#login-modal">登录</a>
                </li>
                <li>
                    <a href="{:U('User/register')}">注册</a>
                </li>
                </if>
            </ul>
            </li>
            <if condition="is_login()">

                <li class="dropdown">
                <li class="hidden-xs">
                    <a href="#">{:get_username()}</a>
                </li>
                <li class="hidden-xs">
                    <a href="{:U('User/logout')}">退出</a>
                </li>
                </li>
                <else/>
                <li class="hidden-xs">
                    <a href="#" data-toggle="modal" data-target="#login-modal">登录</a>
                </li>
                <li class="hidden-xs">
                    <a href="{:U('User/register')}">注册</a>
                </li>
            </if>
            </ul>
            <form class="navbar-form navbar-right hidden-xs hidden-sm" action="/search" method="get">
                <div class="form-group">
                    <input class="form-control js-search" name="q" placeholder="搜索">
                    <button class="button es-icon es-icon-search"></button>
                </div>
            </form>
        </div>
    </nav>
</header>